using System;

namespace SpaceWolf
{
    static class Program
    {
        /// <summary>
        /// Restart if user changes something in options.
        /// </summary>
        public static bool RestartGameAfterOptionsChange = false;

        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        static void Main(string[] args)
        {
            using (Elite game = new Elite())
            {
                game.Run();
                SpaceWolf.Properties.GameSettings.Save();

                // Restarting does only work on the windows platform, isn't required
                // for the Xbox 360 anyways.
                if (RestartGameAfterOptionsChange)
                    System.Diagnostics.Process.Start("SpaceWolf.exe");
            }

            //SpaceWolf.Sounds.Sound.TestPlayClickSound();
            //XnaElite.Graphics.LineManager2D.TestDraw2DLine();
            //XnaElite.Graphics.LineManager3D.TestDraw3DLine();
            //XnaElite.Graphics.LineManager3D.TestLineRendering3D();
            //XnaElite.Shaders.PreScreenSkyCubeMapping.TestSkyCubeMapping();
            //XnaElite.Particle3D.ParticleManager.TestParticle();
        }
    }
}

